import request from '@/utils/request';
import type { AxiosResponse } from 'axios';
const baseModule = '/role';

/**
 * 查询分页
 * @param param 参数
 * @returns {Promise<AxiosResponse<T>>}
 */
export const getRoleList = (param: object): Promise<AxiosResponse<API.IResult>> => {
  return request({
    url: `${baseModule}/list`,
    method: 'post',
    data: param,
  });
};
